package com.xyzwps.harbor.util;

import java.util.Objects;

public enum ErrorCode {
    BAD_REQUEST("4000", "Bad request"),
    INACTIVE_USER("4001", "User should be active"),


    NOT_IMPL("5000", "Business error"),
    INCORRECT_CODE("9998", "May be a bug"),
    UNHANDLED("9999", "Unrecognized error");

    public final String code;
    public final String desc;

    ErrorCode(String code, String desc) {
        this.code = Objects.requireNonNull(code);
        this.desc = Objects.requireNonNull(desc);
    }
}